import $http from '@/ajax/http.js';

export const index_business = {
	data() {
		return {
			dayincome: '',
			monthincome: '',
			token: wx.getStorageSync('token')
		}
	},
	onLoad() {
		this.income();
	},
	methods: {
		income() {
			$http.request({
				url: "/bus/index/getDayAndMonthIncome",
				method: 'GET'
			}).then((res) => {
				this.dayincome = res.dayInCome
				this.monthincome = res.sumInCome
				console.log(res, "收入数据");
			})
		}
	}
}